CFLAGS:=$(shell pkg-config --cflags gtk+-2.0)
LDFLAGS:=$(shell pkg-config --libs gtk+-2.0)
CLASSES:=GTK.o GTKWindow.o GTKButton.o GTKContainer.o GTKWidget.o
libobgtk: libobgtk.so
libobgtk.so: $(CLASSES)
	gcc -shared -o libobgtk.so $^ $(LDFLAGS)
%.o: %.m
	gcc $(CFLAGS) -fPIC -c $< -o $@
clean:
	rm $(CLASSES) libobgtk.so
install:
	install libobgtk.so /usr/lib/
uninstall:
	rm /usr/lib/libobgtk.so
